home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1078 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  781 b 

  1. Path: rover.ucs.ualberta.ca!news
  2. From: ryangall@gpu.srv.ualberta.ca (Bobby Sixkiller)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: allocating unlimited string input....HELP
  5. Date: 11 Jan 1996 06:11:17 GMT
  6. Organization: University of Alberta, Edmonton, Canada
  7. Message-ID: <4d29m5$p80@pulp.ucs.ualberta.ca>
  8. References: <4cvph6$s8s@pulp.ucs.ualberta.ca> <4d0j0r$7aq@news.iag.net>
  9. NNTP-Posting-Host: async14-9.remote.ualberta.ca
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.99.2
  12.  
  13.  
  14. >Are you sure it doesn't start acting up, when count reaches 128?  That's 
  15. >the result where char is a signed char.  At 127 + 1, count goes negative 
  16. >(becomes -128).  Subsequent loops would count up from there.
  17.  
  18. that right, I must have read it wrong, but it goes nuts @ 126 since malloc 
  19. is asking for sizeof(B)+2
  20.  
  21.  
  22.  
  23.